<template>
  <div id="teml">
    <slider :list="list"></slider>
  </div>
</template>

<script>
import slider from '../subcom/slider.vue';
import common from '../../kits/common.js';
import Toast from 'mint-ui';
export default {
  components:{
    slider
  },
  data(){
    return {
      id:0,
      list:[]
    }
  },
  methods:{
      getData(){
          this.id = this.$route.params.id;
          var url = common.newdomain + '/api/getthumimages/' + this.id;
          this.$http.get(url).then(function(res){
            if(res.body.status !=0 ){
              Toast(res.body.message)
            }
            this.list = res.body.message;
          })
      }
  },
  created(){
    this.getData()
  }
}
</script>

<style >

</style>
